package mybox.engine;

import java.io.File;
import java.io.IOException;


public class CallQcad {
	
	public CallQcad(String dxfFile) throws IOException {
		
		//CallQcad last revision
		if (System.getProperty("os.name").indexOf("indows")>-1) {
			@SuppressWarnings("unused")
			Process qcad = Runtime.getRuntime().exec("C:\\Program Files (x86)\\QCAD Professional\\qcad "+ReferenceIOutput.testoutputFile());					
			
		 } else {			 
			 if ((new File("/home/hannes/Desktop")).exists()) {				 
				 @SuppressWarnings("unused")				 
				 //Process qcad = Runtime.getRuntime().exec("/home/hannes/qcad-3.0.0-trial-linux-x86/qcad-trial.sh "+ReferenceIOutput.testoutputFile());					
				Process qcad = Runtime.getRuntime().exec("/home/hannes/qcad-2.2.2.0-1-prof.linux.x86/qcad "+ReferenceIOutput.testoutputFile());					
			 }
			 else if ((new File("/home/hannes/Arbeitsfläche")).exists()) 
			 {
				 	@SuppressWarnings("unused")
				 	//Process qcad = Runtime.getRuntime().exec("/home/hannes/qcad-3.0.0-trial-linux-x86/qcad-trial.sh "+ReferenceIOutput.testoutputFile());
					Process qcad = Runtime.getRuntime().exec("/home/hannes/qcad-2.2.2.0-1-prof.linux.x86/qcad "+ReferenceIOutput.testoutputFile());					
			 }
			 
		 }
		
		}

}
